package com.qing.service;

import com.qing.pojo.Document;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qinghua
 * @since 2022-06-06
 */
public interface DocumentService extends IService<Document> {

    /**
     * 上传文件
     * @param file  文件
     * @return {@link Boolean }
     * @author qinghua
     * @date 2022/6/13 16:54
     */
    Boolean upload(MultipartFile file,String title,String remake,Integer userId);

    List<Map<String, Object>> queryAllAndName();

}
